﻿@model GPS.ENTITYS.CrudModelQLGV
<style type="text/css">
    .btn-file {
        position: relative;
        overflow: hidden;
    }

        .btn-file input[type=file] {
            position: absolute;
            top: 0;
            right: 0;
            min-width: 100%;
            min-height: 100%;
            font-size: 100px;
            text-align: right;
            filter: alpha(opacity=0);
            opacity: 0;
            background: red;
            cursor: inherit;
            display: block;
        }

    input[readonly] {
        background-color: white !important;
        cursor: text !important;
    }

    /*.col-md-8 {
        width: 80% !important;
    }

    .col-md-4 {
        width: 20% !important;
    }*/
</style>
<div class="modal-header fdb-panel-header-10">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h5 class="modal-title" id="myModalLabel">Xem Chi tiết giáo viên</h5>
</div>
@using (Html.BeginForm("Detail", "GPS_GiaoVien", FormMethod.Post, new { enctype = "multipart/form-data", @id = "myForm" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    @Html.HiddenFor(m => m.GV_MA)
    <div id="tabs">
        <div id="tabs-1">
            @Html.Hidden("IsEdit", 0)
            <fieldset class="fs_body">
                <legend class="head_title">Thông tin chi tiết giáo viên</legend>
                <div class="row">
                    <div class="col-md-8">
                        <div class="row margin-top-05">
                            <div class="col-md-4 control-label text-left">
                                Cơ sở đào tạo:
                            </div>
                            <div class="col-md-8">
                                @Html.DisplayFor(model => model.DVGTVT_TEN, new { @class = "form-control" })
                            </div>
                        </div>
                        <div class="row margin-top-05">
                            <div class="col-md-4 control-label">
                                Mã giáo viên:
                            </div>
                            <div class="col-md-8">
                                @Html.DisplayFor(model => model.GV_MA, new { @class = "form-control" })
                            </div>
                        </div>

                        <div class="row margin-top-05">
                            <div class="col-md-4 control-label">
                                Họ và tên:
                            </div>
                            <div class="col-md-8">
                                @Html.DisplayFor(model => model.GV_HOTEN, new { @class = "form-control" })
                            </div>
                        </div>
                        <div class="row margin-top-05">
                            <div class="col-md-4 control-label">
                                Giới tính:
                            </div>
                            <div class="col-md-8">
                                @Html.DisplayFor(model => model.GV_GIOITINH, new { @class = "form-control" })
                            </div>

                        </div>
                        <div class="row margin-top-05">
                            <div class="col-md-4 control-label">
                                Ngày sinh:
                            </div>
                            <div class="col-md-8">
                                @Html.DisplayFor(model => model.GV_NGAYSINH, new { @class = "form-control" })
                            </div>
                        </div>
                        <div class="row margin-top-05">
                            <div class="col-md-4 control-label">
                                Số CMTND:
                            </div>
                            <div class="col-md-8">
                                @Html.DisplayFor(model => model.GV_SOCMT, new { @class = "form-control" })
                            </div>

                        </div>
                        <div class="row margin-top-05">
                            <div class="col-md-4 control-label">
                                Điện thoại:
                            </div>
                            <div class="col-md-8">
                                @Html.DisplayFor(model => model.GV_TEL, new { @class = "form-control" })
                            </div>
                        </div>
                    </div>

                    @*<div class="col-md-2">
                                            <fieldset class="fs_body">
                                                <legend class="head_title">Ảnh giáo viên</legend>
                                                <div style="">
                                                    @{
                        String img64Url = string.Empty;
                        if (Model.GV_ANHCD != null)
                        {
                            String img64 = Convert.ToBase64String(Model.GV_ANHCD);
                            img64Url = string.Format("data:image/" + Model.GV_ANHCD + ";base64,{0}", img64);
                        }
                                                    }
                                                    <img id="output_image" src="@img64Url" width="120" height="130" />
                                                </div>
                                            </fieldset>
                                        </div>*@
                </div>

                <div class="row">
                    <fieldset class="fs_body">
                        <legend class="head_title">Địa chỉ - cư trú</legend>
                        <div class="row margin-top-05">
                            <div class="col-md-2 control-label">
                                Nơi cư trú:
                            </div>
                            <div class="col-md-4">
                                @Html.DisplayFor(model => model.GV_NOICT, new { @class = "form-control" })
                            </div>

                            <div class="col-md-2 control-label">
                                Nơi công tác:
                            </div>
                            <div class="col-md-4">
                                @Html.DisplayFor(model => model.GV_NOICT_DVGTVT_MA, new { @class = "form-control" })
                            </div>
                        </div>
                    </fieldset>
                </div>
                <div class="row">
                    <fieldset class="fs_body">
                        <legend class="head_title">Chuyên môn - nghiệp vụ</legend>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="row margin-top-05">
                                    <div class="col-md-6 control-label">
                                        Hạng đào tạo:
                                    </div>
                                    <div class="col-md-6">
                                        @Html.DisplayFor(model => model.GV_HANGDT_MA, new { @class = "form-control" })
                                    </div>
                                </div>

                                <div class="row margin-top-05">
                                    <div class="col-md-6 control-label">
                                        Hình thức tuyển dụng:
                                    </div>
                                    <div class="col-md-6">
                                        @Html.DisplayFor(model => model.GV_HTTUYENDUNG, new { @class = "form-control" })
                                    </div>
                                </div>

                                <div class="row margin-top-05">
                                    <div class="col-md-6 control-label">
                                        Trình độ văn hóa:
                                    </div>
                                    <div class="col-md-6">
                                        @Html.DisplayFor(model => model.GV_TDVANHOA, new { @class = "form-control" })
                                    </div>
                                </div>

                                <div class="row margin-top-05">
                                    <div class="col-md-6 control-label">
                                        Trình độ sư phạm:
                                    </div>
                                    <div class="col-md-6">
                                        @Html.DisplayFor(model => model.GV_TDSUPHAM, new { @class = "form-control" })
                                    </div>
                                </div>

                                <div class="row margin-top-05">
                                    <div class="col-md-6 control-label">
                                        Ngày cấp GPLX:
                                    </div>
                                    <div class="col-md-6">
                                        @Html.DisplayFor(model => model.GV_NGAYCAPGPLX, new { @class = "form-control" })
                                    </div>
                                </div>

                                <div class="row margin-top-05">
                                    <div class="col-md-6 control-label">
                                        Thâm niên sát hạch:
                                    </div>
                                    <div class="col-md-6">
                                        @Html.DisplayFor(model => model.GV_THAMNIENLX, new { @class = "form-control" })
                                    </div>
                                </div>
                            </div>

                            <div class="col-md-6">
                                <div class="row margin-top-05">
                                    <div class="col-md-6 control-label">
                                        Trình độ chuyên môn:
                                    </div>
                                    <div class="col-md-6">
                                        @Html.DisplayFor(model => model.GV_TDCHUYENMON, new { @class = "form-control" })
                                    </div>
                                </div>

                                <div class="row margin-top-05">
                                    <div class="col-md-6 control-label">
                                        Hạng GPLX:
                                    </div>
                                    <div class="col-md-6">
                                        @Html.DisplayFor(model => model.GV_HGPLX_MA, new { @class = "form-control" })
                                    </div>
                                </div>

                                <div class="row margin-top-05">
                                    <div class="col-md-6 control-label">
                                        Hình thức ĐT:
                                    </div>
                                    <div class="col-md-6">
                                        @Html.DisplayFor(model => model.GV_HTDTAO_MA, new { @class = "form-control" })
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row margin-top-05">
                            <div class="col-md-6">
                                <fieldset class="fs_body">
                                    <legend class="head_title">Thông tin cho giáo viên thực hành</legend>
                                    <div class="row margin-top-05">
                                        <div class="col-md-4 control-label">
                                            Số QĐ cấp GCN:
                                        </div>
                                        <div class="col-md-8">
                                            @Html.DisplayFor(model => model.GV_SOQD_GCN, new { @class = "form-control" })
                                        </div>
                                    </div>
                                    <div class="row margin-top-05">
                                        <div class="col-md-4 control-label">
                                            Ngày QĐ GCN:
                                        </div>
                                        <div class="col-md-8">
                                            @Html.DisplayFor(model => model.GV_NGAYQD_GCN, new { @class = "form-control" })
                                        </div>
                                    </div>
                                </fieldset>
                            </div>
                            <div class="col-md-6">
                                <fieldset class="fs_body">
                                    <legend class="head_title">Thông tin cho giáo viên lý thuyết</legend>
                                    <div class="row margin-top-05">
                                        <div class="col-md-4 control-label">
                                            Kỹ thuật lái xe:
                                        </div>
                                        <div class="col-md-2">
                                            @Html.DisplayFor(model => model.GV_KYTHUATLAIXE, new { @class = "form-control" })
                                        </div>
                                    </div>

                                    <div class="row margin-top-05">
                                        <div class="col-md-4 control-label">
                                            Cấu tạo và sửa chữa:
                                        </div>
                                        <div class="col-md-2">
                                            @Html.DisplayFor(model => model.GV_CAUTAOSUACHUA, new { @class = "form-control" })
                                        </div>

                                        <div class="col-md-4 control-label">
                                            Đạo đức lái xe:
                                        </div>
                                        <div class="col-md-2">
                                            @Html.DisplayFor(model => model.GV_DAODUCLAIXE, new { @class = "form-control" })
                                        </div>
                                    </div>

                                    <div class="row margin-top-05">
                                        <div class="col-md-4 control-label">
                                            Nghiệp vụ vận tải:
                                        </div>
                                        <div class="col-md-2">
                                            @Html.DisplayFor(model => model.GV_NGHIEPVUVANTAI, new { @class = "form-control" })
                                        </div>
                                        <div class="col-md-4 control-label">
                                            Luật giao thông đường bộ
                                        </div>
                                        <div class="col-md-2">
                                            @Html.DisplayFor(model => model.GV_LUATGTDB, new { @class = "form-control" })
                                        </div>
                                    </div>
                                </fieldset>
                            </div>
                        </div>
                    </fieldset>

                    <div class="row margin-top-05">
                        <div class="col-md-4 control-label">
                            Mô tả:
                        </div>
                        <div class="col-md-8">
                            @Html.DisplayFor(model => model.GV_MOTA, new { @class = "form-control", @rows = 5 })
                        </div>
                    </div>

                    <div class="row margin-top-05 Action_FormDetail">
                        <a href="@Url.Action("ExportWord", "GPS_GiaoVien", new { id = Model.GV_MA, id1=Model.GV_DVGTVT_MA})" class="btn btn-primary btn-sm">
                            <i class="fa fa-file-excel-o"></i> In thông tin chi tiết giáo viên
                        </a>
                        &nbsp;&nbsp;
                        <button class="btn btn-primary btn-sm" type="button" data-dismiss="modal">Hủy bỏ</button>
                    </div>
                </div>
            </fieldset>
        </div>
    </div>
}
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
<script src="~/Scripts/datepicker.js"></script>
<script src="~/Scripts/jquery-ui-1.11.4.js"></script>
<script src="~/Scripts/jquery.maskedinput.js"></script>
<script src="~/Scripts/jquery.maskMoney.js"></script>
<script src="~/Scripts/jquery.number.js"></script>
<script src="~/Scripts/jquery.masknumber.js"></script>
<script src="~/Scripts/moment.js"></script>

<script type="text/javascript">

    // Voi jQuery 1.9 > thi chi validate gia tri trong active tab
    // Muon validate nhung gia tri trong cac tab khac nua thi dung jquery.validate 1.8.1 or 1.7
    // mask edit cho truong ngay thang (su dung jquery.maskedinput)
    function ToJavaScriptDate(value) {
        if (value != null) {
            var pattern = /Date\(([^)]+)\)/;
            var results = pattern.exec(value);
            var dt = new Date(parseFloat(results[1]));
            return dt.getDate() + "/" + (dt.getMonth() + 1) + "/" + dt.getFullYear();
        }
        return null;
    }
</script>

<script type='text/javascript'>
    $(document).on('change', '.btn-file :file', function () {
        var input = $(this),
            numFiles = input.get(0).files ? input.get(0).files.length : 1,
            label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
        input.trigger('fileselect', [numFiles, label]);
    });

    function preview_image(event) {
        var reader = new FileReader();
        reader.onload = function () {
            var output = document.getElementById('output_image');
            output.src = reader.result;
        }
        reader.readAsDataURL(event.target.files[0]);
    }
</script>
@Styles.Render("~/Content/themes/base/css")